package com.aliyun.messagemgt.dto.vo.weixin;

import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * @Author: Xiaohang Lv
 * @Date: 2019/5/15 16:40
 */
public class WeixinVideoSendModelVO extends WeixinSendModelVO {
    private Video video;

    public WeixinVideoSendModelVO() {
        super.setMsgtype("video");
        video = new Video();
    }

    public Video getVideo() {
        return video;
    }

    public WeixinVideoSendModelVO setVideo(Video video) {
        this.video = video;
        return this;
    }

    public WeixinVideoSendModelVO setMediaId(String mediaId) {
        video.mediaId = mediaId;
        return this;
    }

    public WeixinVideoSendModelVO setTitle(String title) {
        video.title = title;
        return this;
    }

    public WeixinVideoSendModelVO setDescription(String description) {
        video.description = description;
        return this;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }

    static class Video {
        private String mediaId;

        private String title;

        private String description;

        public String getMediaId() {
            return mediaId;
        }

        public Video setMediaId(String mediaId) {
            this.mediaId = mediaId;
            return this;
        }

        public String getTitle() {
            return title;
        }

        public Video setTitle(String title) {
            this.title = title;
            return this;
        }

        public String getDescription() {
            return description;
        }

        public Video setDescription(String description) {
            this.description = description;
            return this;
        }

        @Override
        public String toString() {
            return ToStringBuilder.reflectionToString(this);
        }
    }
}
